package com.springcloud.order.openfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "stock-server")
@Component
public interface StockClient {

    @GetMapping("/stock/reduce/{count}")
    String reduce(@PathVariable("count") int count);

}
